package com.big.patient;

import com.big.common.result.Result;
import com.big.model.model.patient.PatientDsn;
import com.big.model.model.patient.PatientInfo;
import com.big.model.model.patient.address.PatientAddress;
import com.big.model.vo.patient.PatientVo;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-patient")
@Repository
public interface PatientFeignClient {

      //用户添加和密
      @PostMapping("/api/patient/savePatient")
      public String saves(@RequestBody  PatientVo patientVo );


      @GetMapping("/api/patient/dns/findInfoDns/{phone}")
      public PatientDsn findInfoDns(@PathVariable("phone") String phone);

      @GetMapping("/api/patient/findUserPhone/{phone}")
      public PatientInfo FindPatient(@PathVariable("phone") String phone);

      @ApiModelProperty(value = "查找用户")
      @GetMapping("/api/patient/findUserById/{uId}")
      public PatientInfo findUserById(@PathVariable("uId") String  uId);

      @ApiModelProperty(value = "管理员密")
      @GetMapping("/api/patient/dns/findAdminInfoDns/{uId}")
      public PatientDsn findAdminInfoDns(@PathVariable("uId") String  uId);


      @ApiOperation(value = "查询地址")
      @GetMapping("/api/patient/address/info/{id}")
      public PatientAddress addressInfo(@PathVariable("id") Long id);

}
